package com.lizb.scserviceconsumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name= "service-demo")
public interface TestService {

    /**
     * restful api 调用
     * @return
     */
    @GetMapping("/info/{testParam}")
    String hello(@PathVariable("testParam") String testParam);
}
